package com.reremouse.model;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "y_partner_type")
public class PartnerType
        implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "id")
    private Long id = Long.valueOf(System.nanoTime());
    @Column(name = "name")
    private String name;
    @Column(name = "ord")
    private int ord;

    public PartnerType() {
    }

    public PartnerType(Long id) {
        this.id = id;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getOrd() {
        return this.ord;
    }

    public void setOrd(int ord) {
        this.ord = ord;
    }

    public int hashCode() {
        int hash = 0;
        hash += (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }

    public boolean equals(Object object) {
        if (!(object instanceof PartnerType)) {
            return false;
        }
        PartnerType other = (PartnerType) object;
        if (((this.id == null) && (other.id != null)) || ((this.id != null) && (!this.id.equals(other.id)))) {
            return false;
        }
        return true;
    }

    public String toString() {
        return "com.reremouse.model.PartnerType[ id=" + this.id + " ]";
    }
}



/* Location:           F:\jsp源码\蝙蝠论坛系统\rerebbs\WEB-INF\classes\

 * Qualified Name:     com.reremouse.model.PartnerType

 * JD-Core Version:    0.7.0.1

 */